package TestObjects;

import java.awt.Polygon;
import java.util.ArrayList;

import GameObjects.Instances.Instance;
import GameObjects.Instances.Instances;
import GameObjects.Physics.Position;
import GameObjects.Ships.Weapon.Bullets.Bullet;

public class BulletTest extends Bullet 
{
	private static final Instances instances = makeInstances();
	
	public BulletTest(Position position) 
	{
		super(instances, position, 5, 5, 50);
	}
	
	private static Instances makeInstances()
	{
		Polygon bounds = new Polygon();
		bounds.addPoint(0, 0);
		bounds.addPoint(10, 0);
		bounds.addPoint(10, 10);
		bounds.addPoint(0, 10);	
		Instance inst = new Instance(null, 10, 10, bounds);
		ArrayList<Instance> instsa = new ArrayList<Instance>();
		instsa.add(inst);
		return new Instances(instsa, 1);
	}
}
